home *** CD-ROM | disk | FTP | other *** search
- Message-Id: <9201082256.AA11009@tictac.cert.sei.cmu.edu>
- Date: Wed, 8 Jan 92 17:53:46 EST
- To: cert-tools@cert.sei.cmu.edu
- From: John Sechrest <sechrest@frisby.CS.ORST.EDU>
- Subject: Re: Modified inetd
-
- --------
-
- CERT Tools <cert-tools-request@cert.sei.cmu.edu> writes:
-
- > We are considering modifying inetd to restrict connections by various
- > means (at least address and network, perhaps more). Has anybody
- > already done this? Does anybody have any opinion as to why this is a
- > really bad idea? And, god forbide, does anybody think this is a good
- > idea and have sugestions as to how you would like to see it work?
-
- > Dudley Irish
-
- Dudley,
-
- Here is a README file from a program called in.gated that was done
- at ogi. I think it does what you want. Talk to john about getting it.
-
-
- Readme for in.gate version 1 beta patchlevel 0
-
-
- How To Install
-
- 1) Edit the Makefile and set config options as needed.
-
- 2) Run make.
-
- 3) Create an in.gate.conf file for your site. See top
- of example in.gate.conf file and man-page for
- format of in.gate.conf.
-
- 4) Do make install.
-
- 5) Copy your sites in.gate.conf file to where CONFIG
- in the Makefile points.
-
- 6) Edit inetd.conf and add in.gate to the services you want.
-
- 7) Have inetd reload inetd.conf
-
- 8) And now if everything went well in.gate should be
- working. I would do some testing.
-
-
- Notes
- Changes made to in.gate.conf take affect right away, you
- don't have to reload inetd.
-
-
- John Pochmara
- pochmara@cse.ogi.edu
-
-
- .TH IN.GATE 8 "16 August 1991"
- .SH NAME
- _PROG_ \- security gate for inetd
- .SH SYNOPSIS
- .B _PROG_ server-program server-arguments
- .SH DESCRIPTION
- .B _PROG_
- allows control over which hosts are allowed to
- use services provided from
- .BR inetd(8C).
- .LP
- .B _PROG_
- works by sitting between
- .BR inetd(8C)
- and the server programs.
- .BR inetd(8C)
- starts
- .B _PROG_
- which then checks to see if the requesting host has permissions
- to use the service. If the host
- does have permissions then
- .B _PROG_
- starts up the requested server, otherwise
- .B _PROG_
- reports
- .I `Access denied'
- to the requesting host and exits.
- .LP
- A
- .BR syslog(8)
- entry is made for every request consisting of the
- host IP address who requested
- the service, the service requested, and whether or not
- access was granted.
- .LP
- The access list for
- .B _PROG_
- is stored in
- .B _CONFIG_ .
- .SH CONFIG FILE
- The access list for
- .B _PROG_
- consists of lines of the from:
- .IP
- .I
- ip-addr\ \ \ service-name\ \ \ access-status\ \ \ times
- .LP
- Fields can be separated by either spaces or
- .SM TAB
- characters. Blank lines and lines starting with a
- .RB ` # '
- are ignored.
- .B _CONFIG_
- is searched linearly for host matching and the first
- match found is the one used.
- If an entry in
- .B _CONFIG_
- does match the host then access is granted.
- .TP 20
- .I ip-addr
- is the IP address in dot notation of the host the
- current line applies to. The IP address can contain
- .RB ` * '
- as one or more of the octets in the IP address. This
- matches all numbers for that octet.
- .TP
- .I service-name
- is the service for which the current config line applies.
- .TP
- .I access-status
- is either
- .I yes
- or
- .I no .
- If set to
- .I yes
- then
- .I ip-addr
- is allowed to use the service otherwise access is denied.
- .TP
- .I times
- is a optional comma separated list of times in which access is granted.
- This field only applies if
- .I access-status
- is
- .I yes .
- Times are in 24 hour clock.
- .SH EXAMPLE CONFIG
- .LP
- To allow telnet access to any host
- on network 123.45.0.0 you would use:
- .RS 10
- 123.45.*.*\ \ \ in.telnet \ \ yes
- .RE
- .LP
- To disable rsh for host 92.33.1.2 use:
- .RS 10
- 92.333.1.2\ \ \ in.rshelld\ \ \ \ no
- .RE
- .LP
- Allow finger use by network 45.678.0.0
- between 8am and 5pm.
- .RS 10
- 45.678.*.*\ \ \ in.fingerd\ \ \ \ yes\ \ \ 08:00-17:00
- .RE
- .LP
- To limit telnet access to 9am-11am and 2pm-4pm
- use:
- .RS 5
- *.*.*.*\ \ \ \ \ \ in.telnetd\ \ \ yes\ \ \ 09:00-11:00,14:00-16:00
- .RE
- .LP
- To limit use of rlogin to 34.56.3.12
- use:
- .RS 10
- 34.56.3.12\ \ \ in.rlogind\ \ \ \ yes
- *.*.*.*\ \ \ \ \ \ in.rlogind\ \ \ no
- .RE
- .SH FILES
- .B _PATH_
- .br
- .B _CONFIG_
- .SH "SEE ALSO"
- inetd (8C)
- .br
- inetd.conf (5)
- .SH AUTHOR
- John Pochmara <pochmara@cse.ogi.edu>
- .LP
- .SH BUGS
- The
- .I times
- option has not been tested completely. Does not work for RPC based
- services.
-
- -----
- John Sechrest . Internet: sechrest@cs.orst.edu
- Lab Coordinator .
- Computer Science Dept . UUCP: hplabs!hp-pcd!orstcs!sechrest
- Oregon State University .
- Corvallis,Oregon 97331 .
- (503) 737-3273 .
-
-
-